﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Data;
using System.Web.UI.WebControls;

public partial class Control_FQA_list_fqa : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void rptListNews_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
        try
        {
            DataRowView view = (DataRowView)e.Item.DataItem;
            if (view == null)
            {
                return;
            }
            DataRow b_dr = view.Row;

            Label tbtCauhoi = (Label)e.Item.FindControl("tbtCauhoi");
            tbtCauhoi.Text = (b_dr["HO_TEN"].ToString() == "" ? "Vô danh" : b_dr["HO_TEN"].ToString()) + " :  " + b_dr["CAUHOI"].ToString()+" ?";

            Label traloi = (Label)e.Item.FindControl("traloi");
            traloi.Text = b_dr["TRA_LOI"].ToString();
        }
        catch (Exception ex)
        {
        }
    }
}